import {
    GETMOVIELISE
} from '../constnant/movieConst'

const init = {
    movieList: [],
    a:1
}

export default function movieReducer(prevState = init , action) {
    console.log(1);

    const {
        type,
        data
    } = action

    switch(type){
        case GETMOVIELISE :
            return {
                ...prevState , movieList: data
            }
    }

    return prevState
}